package com.lanchuan.soft.config;

import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "common")
@Log4j2
public class SystemVariable {

    private static String uploadSave;
    private static String uploadVisit;

    public static String getUploadSave() {
        return uploadSave;
    }

    @Value("${common.upload.save}")
    public void setUploadSave(String uploadSave) {
        SystemVariable.uploadSave = uploadSave;
    }

    public static String getUploadVisit() {
        return uploadVisit;
    }

    @Value("${common.upload.visit}")
    public void setUploadVisit(String uploadVisit) {
        SystemVariable.uploadVisit = uploadVisit;
    }
}
